import 'package:flutter/cupertino.dart';

class PersistentPlatformView extends StatefulWidget {
  final Widget platformView;

  const PersistentPlatformView({Key? key, required this.platformView}) : super(key: key);

  @override
  State<PersistentPlatformView> createState() => _PersistentPlatformViewState();
}

class _PersistentPlatformViewState extends State<PersistentPlatformView> with AutomaticKeepAliveClientMixin {
  @override
  bool get wantKeepAlive => true;

  @override
  Widget build(BuildContext context) {
    super.build(context);
    return widget.platformView;
  }
}
